-
Notifications
You must be signed in to change notification settings - Fork 642
CASSGO-27 fix gocql-RetryPolicy-still-dont-use-query-idempotence #1809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CASSGO-27 fix gocql-RetryPolicy-still-dont-use-query-idempotence #1809
Conversation
|
Hi, I think this won't fix the issue because of this line cassandra-gocql-driver/query_executor.go Lines 67 to 69 in 92b4056
the function do is only called when it's marked as NOT idempotent.
|
|
@SiyaoIsHiding that line you linked is to avoid speculative executions if the query isn't idempotent which seems correct to me... It's not really related to retries. If it's idempotent then |
|
@OleksiienkoMykyta can you add a test that reproduces the bug before this change to ensure we don't get a regression in the future? It should be possible to reproduce this by using a very small timeout |
Yes, sure, I'll add some tests to cover this behavior. |
|
@joao-r-reis I have added some tests, it would be nice if you would check it. |
|
|
joao-r-reis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good 👍 , still need to fix failing tests though.
9ce97bb to
072a04e
Compare
I have fixed it. The issue was in test which should make retries but doesn't set idempotence to query explicitly, now everything works properly. |
|
Please format your commit message following the rules stated in CONTRIBUTING.md and add this JIRA to the We need another committer +1 to merge this. |
072a04e to
a262096
Compare
CHANGELOG.md
Outdated
|
|
||
| ### Fixed | ||
|
|
||
| - CASSGO-27 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to have a short summary of what was fixed here, so users don't need to lookup what this ticket is, convention seems to be
"message" (ticket)
So for this, something like this would suffice
"Retry policy now takes into account query idempotency (CASSGO-27)"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I have fixed it according to your suggestions
|
Sorry was on the wrong github account on my last comment - happy to tick this, but would be good to update the changelog message if possible. |
|
And also change the first line of the commit message and add Jackson as a reviewer. The first line of the commit message could be as an example: |
a262096 to
be5b5e2
Compare
RetryPolicy doesn't check the query's idempotency, but according to the specification queries with false idempotence shouldn't be retried. patch by Mykyta Oleksiienko; reviewed by João Reis and Jackson Fleming for CASSGO-27
be5b5e2 to
10750fe
Compare
Closes #1803
RetryPolicy doesn't check the query's idempotency, but according to the specification queries with false idempotence shouldn't be retried.